export const rules = {
    templateName: [
        { required: true, message: '请输入模板名称', trigger: 'blur' },
        { min: 2, max: 20, message: '模板名称长度2-20位', trigger: 'blur' }
    ],
    templateCode: [
        { required: true, message: '请输入模板编码', trigger: 'blur' },
        { min: 2, max: 20, message: '模板编码长度2-20位', trigger: 'blur' },
    ],
    notifyType: [
        { required: true, message: '请选择通知方式', trigger: 'change' }
    ],
    notifyChannel: [
        { required: true, message: '请选择通知渠道', trigger: 'change' }
    ],
    notifyStart: [
        { required: true, message: '请输入问候语', trigger: 'blur' }
    ],
    notifyText: [
        { required: true, message: '请输入正文内容', trigger: 'blur' }
    ],
    notifyEnd: [
        { required: true, message: '请输入结束语', trigger: 'blur' }
    ],
};
